var longestCommonPrefix = function(strs) {
    var Str ="";
    for(var i = 0;i<strs[0].length;i++){
       for(var j=0;j<strs.length;j++){
        if(strs[j][i]==strs[j+1][i]&j<strs.length-1){
            
        }
       }
      
    }
    return Str;
};
let a=['arr','arr','arr']
console.log(a[1][0]);



